//
// Menu.cpp for  in /home/gomes_m//svn/google/ticket-pour-gdl/menu_V1
// 
// Made by mickael gomes
// Login   <gomes_m@epitech.net>
// 
// Started on  Wed May 15 09:28:21 2013 mickael gomes
// Last update Thu May 30 11:26:24 2013 mickael gomes
//

#include		"Menu.hh"

Menu::Menu()
{

}

Menu::~Menu()
{

}

void			Menu::initialize(void)
{
  image_.initialize("images/menu.png", -900, 660, 930, -630, -1);
  image_.initVertex();
}

void			Menu::resetPos(Vector3f &coord)
{
  coord.posX1_ = 200;
  coord.posY1_ = -100;
  coord.posX2_ = 280;
  coord.posY2_ = -160;
  coord.posZ_ = 0;
  coord.moveX_ = 0;
  coord.moveY_ = 0;
  coord.moveXValue_ = 0;
  coord.moveYValue_ = 80;
  coord.limitXValue_ = 0;
  coord.limitYValue_ = -240;
}

void			Menu::update(Key key, Cursor &cursor)
{
  if (key == UP || key == DOWN || key == RETURN)
    cursor.update(key);
}

void			Menu::draw(void)
{
  image_.draw();
}

void			Menu::unload(void)
{

}
